package actividad_2;

import java.awt.FlowLayout;
import java.awt.Rectangle;
import java.io.ObjectInputStream.GetField;

import javax.swing.BoxLayout;
import javax.swing.JButton;
import javax.swing.JComponent;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.text.AbstractDocument.Content;

public class Actividad_2 {

	public static void main(String[] args) {
		JFrame f = new JFrame();

		f.setTitle("Actividad 2");
		f.setSize(300, 200);

		f.setLayout(new FlowLayout(FlowLayout.CENTER));
		
		JLabel l = new JLabel();

		l.setText("Etiqueta");
		
		JTextField tf = new JTextField(22);

		JButton b = new JButton("Enviar");

		f.add(l);
		f.add(tf);
		f.add(b);

		System.out.println(tf.getText());

		f.setVisible(true);
	}

}
